#ifndef QVERNOTEMAINVIEW_H
#define QVERNOTEMAINVIEW_H

#include <MApplicationPage>
#include <QDeclarativeView>
#include "QvernoteWindow.h"
#include "QvernoteAPI.h"

class QvernoteMainView : public QvernoteWindow
{
    Q_OBJECT
public:
    explicit QvernoteMainView(MApplicationWindow *parent = 0);

    static void Synchronize(QvernoteMainView*);

    QDeclarativeView* GetMainView();
signals:

public slots:
    void onAllNotesClicked();
    void onNotebooksClicked();
    void onUpdateSyncProgress(int, int);
    virtual void onOrientationChanged(M::Orientation o);

private:
    QvernoteAPI*        m_hEvernote;
    QDeclarativeView*   m_mainView;
    QGraphicsWidget*    m_centralWidget;

};

#endif // QVERNOTEMAINVIEW_H
